TextPipe: Online Help
    Unicode Pattern Search and replace (UTF-16LE)
 

Submit feedback on this topic 

 Home  User Assistance   Tutorials   How to Use TextPipe
 Menus: File   Edit   Filters[ Convert   Add   Remove   Unicode   Replace   Special   Map   Email   Restrict ]  Tools   Window   Help   Advanced

 

Use this filter to find Unicode text that appears exactly as you have typed it, or with a case variation. You can also use this filter to find multi-line text.

The length of each string is shown above it, and a warning is displayed on the status line if they are not the same. This can be very useful when replacing strings in binary files.

Note 1: The Unicode file being processed must be in UTF-16LE form. If it is not, use the Unicode conversion filter to convert it.

Note 2: If you're using the Trial Run area to test the replacement, ensure that the Trial Run Extra Options are set to Treat Trial Input as Unicode (checked) and Treat Trial Output as Unicode (checked).

Find Unicode Pattern

The pattern to find. The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy, and entering unprintable and special characters.

See also

Pattern options button [...]

Maximum match size

Changes the maximum search buffer size. If you need to match a string that is longer than 4096 bytes (4k), increase the Maximum text buffer size to be at least as large as the string you need to match.

Ignore non-spacing characters

Ignores characters that have zero width

Space compression

Treats multiple spaces and tabs the same as a single space

Match Case

When checked, the case of the string found must match the case of the Find String exactly.

Find Whole Words Only

Only match the Find String when it is not part of a larger word eg find "the" but not "them", "there", "worth" etc.

Replace With

The text to replace the found text with. The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy, and entering unprintable and special characters.

To insert the found text into the replacement, use the text $0. If you need to put a dollar sign $ in the Replace With section, simply double it i.e. $$.

The replacement text is passed to any sub filters.

Case Sensitive Replace

If the Find String matches text that is entirely in UPPERCASE, this forces the replace string to all UPPERCASE. If the Find String matches text that is entirely in lowercase, this forces the replace string to all lowercase.

Replace First Only

Only replace the first occurrence found - skip all remaining matches.

Prompt On Replace

By checking this option, you can manually verify each match before it gets replaced. You can choose to replace or ignore single matches, the remainder of the file or the entire job.

Skip Prompt If Identical

If the find string and replace string are identical, this option can be enabled to skip prompting. This can happen when the case of the search string is identical to the case of the replace string during a case-insensitive search.

Extract matches

When this option is checked all non-matching text will be discarded, leaving only the replacement text. This can be handy for data mining content from web sites or data files.

 

 

 Contact Us   Support   Community   Tutorials and User Guides (online)
 © 1999-2005 Crystal Software. All rights reserved.